package com.ys.entity.advanced;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_advert].[dbo].ADS_Sp_Campaigns", catalog="Id")
public class AdsSpCampaigns extends BaseEntity<AdsSpCampaigns> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="CampaignId", nameJava="campaignId", typeDataBase="varchar")
	private String campaignId;
	@YsField(nameDataBase="CampaignType", nameJava="campaignType", typeDataBase="varchar")
	private String campaignType;
	@YsField(nameDataBase="CampaignName", nameJava="campaignName", typeDataBase="varchar")
	private String campaignName;
	@YsField(nameDataBase="CampaignStatus", nameJava="campaignStatus", typeDataBase="varchar")
	private String campaignStatus;
	@YsField(nameDataBase="CampaignBudgetCurrencyCode", nameJava="campaignBudgetCurrencyCode", typeDataBase="varchar")
	private String campaignBudgetCurrencyCode;
	@YsField(nameDataBase="CampaignBudgetAmount", nameJava="campaignBudgetAmount", typeDataBase="decimal")
	private BigDecimal campaignBudgetAmount;
	@YsField(nameDataBase="CampaignBiddingStrategy", nameJava="campaignBiddingStrategy", typeDataBase="varchar")
	private String campaignBiddingStrategy;
	@YsField(nameDataBase="Impressions", nameJava="impressions", typeDataBase="int")
	private Integer impressions;
	@YsField(nameDataBase="Clicks", nameJava="clicks", typeDataBase="int")
	private Integer clicks;
	@YsField(nameDataBase="ClickThruRate", nameJava="clickThruRate", typeDataBase="decimal")
	private BigDecimal clickThruRate;
	@YsField(nameDataBase="Cost", nameJava="cost", typeDataBase="decimal")
	private BigDecimal cost;
	@YsField(nameDataBase="Spend", nameJava="spend", typeDataBase="decimal")
	private BigDecimal spend;
	@YsField(nameDataBase="CostPerClick", nameJava="costPerClick", typeDataBase="decimal")
	private BigDecimal costPerClick;
	@YsField(nameDataBase="UnitsSoldClicks1d", nameJava="unitsSoldClicks1d", typeDataBase="int")
	private Integer unitsSoldClicks1d;
	@YsField(nameDataBase="Sales1d", nameJava="sales1d", typeDataBase="decimal")
	private BigDecimal sales1d;
	@YsField(nameDataBase="Purchases1d", nameJava="purchases1d", typeDataBase="int")
	private Integer purchases1d;
	@YsField(nameDataBase="UnitsSoldSameSku1d", nameJava="unitsSoldSameSku1d", typeDataBase="int")
	private Integer unitsSoldSameSku1d;
	@YsField(nameDataBase="AttributedSalesSameSku1d", nameJava="attributedSalesSameSku1d", typeDataBase="decimal")
	private BigDecimal attributedSalesSameSku1d;
	@YsField(nameDataBase="PurchasesSameSku1d", nameJava="purchasesSameSku1d", typeDataBase="int")
	private Integer purchasesSameSku1d;
	@YsField(nameDataBase="ShopNameMc", nameJava="shopNameMc", typeDataBase="varchar")
	private String shopNameMc;
	@YsField(nameDataBase="ShopId", nameJava="shopId", typeDataBase="varchar")
	private String shopId;
	@YsField(nameDataBase="VGsJc", nameJava="vGsJc", typeDataBase="varchar")
	private String vGsJc;
	@YsField(nameDataBase="VGsBm", nameJava="vGsBm", typeDataBase="varchar")
	private String vGsBm;
	@YsField(nameDataBase="Date", nameJava="date", typeDataBase="varchar")
	private String date;
	@YsField(nameDataBase="CUser", nameJava="cUser", typeDataBase="varchar")
	private String cUser;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public AdsSpCampaigns setId(Long id) {
		this.id = id;
		return this;
	}
	public String getCampaignId() {
		return campaignId;
	}
	public AdsSpCampaigns setCampaignId(String campaignId) {
		this.campaignId = campaignId;
		return this;
	}
	public String getCampaignType() {
		return campaignType;
	}
	public AdsSpCampaigns setCampaignType(String campaignType) {
		this.campaignType = campaignType;
		return this;
	}
	public String getCampaignName() {
		return campaignName;
	}
	public AdsSpCampaigns setCampaignName(String campaignName) {
		this.campaignName = campaignName;
		return this;
	}
	public String getCampaignStatus() {
		return campaignStatus;
	}
	public AdsSpCampaigns setCampaignStatus(String campaignStatus) {
		this.campaignStatus = campaignStatus;
		return this;
	}
	public String getCampaignBudgetCurrencyCode() {
		return campaignBudgetCurrencyCode;
	}
	public AdsSpCampaigns setCampaignBudgetCurrencyCode(String campaignBudgetCurrencyCode) {
		this.campaignBudgetCurrencyCode = campaignBudgetCurrencyCode;
		return this;
	}
	public BigDecimal getCampaignBudgetAmount() {
		return campaignBudgetAmount;
	}
	public AdsSpCampaigns setCampaignBudgetAmount(BigDecimal campaignBudgetAmount) {
		this.campaignBudgetAmount = campaignBudgetAmount;
		return this;
	}
	public String getCampaignBiddingStrategy() {
		return campaignBiddingStrategy;
	}
	public AdsSpCampaigns setCampaignBiddingStrategy(String campaignBiddingStrategy) {
		this.campaignBiddingStrategy = campaignBiddingStrategy;
		return this;
	}
	public Integer getImpressions() {
		return impressions;
	}
	public AdsSpCampaigns setImpressions(Integer impressions) {
		this.impressions = impressions;
		return this;
	}
	public Integer getClicks() {
		return clicks;
	}
	public AdsSpCampaigns setClicks(Integer clicks) {
		this.clicks = clicks;
		return this;
	}
	public BigDecimal getClickThruRate() {
		return clickThruRate;
	}
	public AdsSpCampaigns setClickThruRate(BigDecimal clickThruRate) {
		this.clickThruRate = clickThruRate;
		return this;
	}
	public BigDecimal getCost() {
		return cost;
	}
	public AdsSpCampaigns setCost(BigDecimal cost) {
		this.cost = cost;
		return this;
	}
	public BigDecimal getSpend() {
		return spend;
	}
	public AdsSpCampaigns setSpend(BigDecimal spend) {
		this.spend = spend;
		return this;
	}
	public BigDecimal getCostPerClick() {
		return costPerClick;
	}
	public AdsSpCampaigns setCostPerClick(BigDecimal costPerClick) {
		this.costPerClick = costPerClick;
		return this;
	}
	public Integer getUnitsSoldClicks1d() {
		return unitsSoldClicks1d;
	}
	public AdsSpCampaigns setUnitsSoldClicks1d(Integer unitsSoldClicks1d) {
		this.unitsSoldClicks1d = unitsSoldClicks1d;
		return this;
	}
	public BigDecimal getSales1d() {
		return sales1d;
	}
	public AdsSpCampaigns setSales1d(BigDecimal sales1d) {
		this.sales1d = sales1d;
		return this;
	}
	public Integer getPurchases1d() {
		return purchases1d;
	}
	public AdsSpCampaigns setPurchases1d(Integer purchases1d) {
		this.purchases1d = purchases1d;
		return this;
	}
	public Integer getUnitsSoldSameSku1d() {
		return unitsSoldSameSku1d;
	}
	public AdsSpCampaigns setUnitsSoldSameSku1d(Integer unitsSoldSameSku1d) {
		this.unitsSoldSameSku1d = unitsSoldSameSku1d;
		return this;
	}
	public BigDecimal getAttributedSalesSameSku1d() {
		return attributedSalesSameSku1d;
	}
	public AdsSpCampaigns setAttributedSalesSameSku1d(BigDecimal attributedSalesSameSku1d) {
		this.attributedSalesSameSku1d = attributedSalesSameSku1d;
		return this;
	}
	public Integer getPurchasesSameSku1d() {
		return purchasesSameSku1d;
	}
	public AdsSpCampaigns setPurchasesSameSku1d(Integer purchasesSameSku1d) {
		this.purchasesSameSku1d = purchasesSameSku1d;
		return this;
	}
	public String getShopNameMc() {
		return shopNameMc;
	}
	public AdsSpCampaigns setShopNameMc(String shopNameMc) {
		this.shopNameMc = shopNameMc;
		return this;
	}
	public String getShopId() {
		return shopId;
	}
	public AdsSpCampaigns setShopId(String shopId) {
		this.shopId = shopId;
		return this;
	}
	public String getVGsJc() {
		return vGsJc;
	}
	public AdsSpCampaigns setVGsJc(String vGsJc) {
		this.vGsJc = vGsJc;
		return this;
	}
	public String getVGsBm() {
		return vGsBm;
	}
	public AdsSpCampaigns setVGsBm(String vGsBm) {
		this.vGsBm = vGsBm;
		return this;
	}
	public String getDate() {
		return date;
	}
	public AdsSpCampaigns setDate(String date) {
		this.date = date;
		return this;
	}
	public String getCUser() {
		return cUser;
	}
	public AdsSpCampaigns setCUser(String cUser) {
		this.cUser = cUser;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public AdsSpCampaigns setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public AdsSpCampaigns setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public AdsSpCampaigns setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static AdsSpCampaigns adsSpCampaigns(
		String campaignId,
		String campaignType,
		String campaignName,
		String campaignStatus,
		String campaignBudgetCurrencyCode,
		BigDecimal campaignBudgetAmount,
		String campaignBiddingStrategy,
		Integer impressions,
		Integer clicks,
		BigDecimal clickThruRate,
		BigDecimal cost,
		BigDecimal spend,
		BigDecimal costPerClick,
		Integer unitsSoldClicks1d,
		BigDecimal sales1d,
		Integer purchases1d,
		Integer unitsSoldSameSku1d,
		BigDecimal attributedSalesSameSku1d,
		Integer purchasesSameSku1d,
		String shopNameMc,
		String shopId,
		String vGsJc,
		String vGsBm,
		String date,
		String cUser,
		Integer status
			) {
		AdsSpCampaigns entity = new AdsSpCampaigns();
		entity.setCampaignId(campaignId);
		entity.setCampaignType(campaignType);
		entity.setCampaignName(campaignName);
		entity.setCampaignStatus(campaignStatus);
		entity.setCampaignBudgetCurrencyCode(campaignBudgetCurrencyCode);
		entity.setCampaignBudgetAmount(campaignBudgetAmount);
		entity.setCampaignBiddingStrategy(campaignBiddingStrategy);
		entity.setImpressions(impressions);
		entity.setClicks(clicks);
		entity.setClickThruRate(clickThruRate);
		entity.setCost(cost);
		entity.setSpend(spend);
		entity.setCostPerClick(costPerClick);
		entity.setUnitsSoldClicks1d(unitsSoldClicks1d);
		entity.setSales1d(sales1d);
		entity.setPurchases1d(purchases1d);
		entity.setUnitsSoldSameSku1d(unitsSoldSameSku1d);
		entity.setAttributedSalesSameSku1d(attributedSalesSameSku1d);
		entity.setPurchasesSameSku1d(purchasesSameSku1d);
		entity.setShopNameMc(shopNameMc);
		entity.setShopId(shopId);
		entity.setVGsJc(vGsJc);
		entity.setVGsBm(vGsBm);
		entity.setDate(date);
		entity.setCUser(cUser);
		entity.setStatus(status);
		return entity;
	}
}